import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter);
//引入需要路由的组件
import CarList from '../pages/CarsList.vue'
import CarList1 from '../pages/CarsList1.vue'

export default new VueRouter({
    routes: [
        {
            path: '/',
            name: 'index',
            component: CarList1
        },
        {
            path: '/CarList',
            component: CarList,
        },{
            path: '/CarList1',
            component: CarList1
        },

    ]
})